<template>
  <div style="padding-top: 100px">
    <el-button type="primary" @click="goDemo(0)"> demo1</el-button>
    <el-button type="primary" @click="goDemo(1)"> demo2</el-button>
    <el-button type="primary" @click="goDemo(2)"> demo3</el-button>

    <el-button type="primary"> 树形结构demo在vue3项目</el-button>
  </div>
</template>

<script>
export default {
  name: "TestCom",
  methods: {
    goDemo(num) {
      const router = ["/dragDemo", "/dargeDemo", "/demo3"];
      this.$router.push(router[num]);
    },
  },
};
</script>
